let app = getApp();
let httptool=require("../../../utils/zry.httptool.js");
let util=require("../../../utils/util.js");
Page({
  data:{
      message:{},
      msgprop:'',//消息提示 
  },
  onLoad:function(options){
      let  id = options.ID;
      let customerId=options.UserId;
      let name=options.Name;
      let that=this;
      let message={};
        message.name=name;
        httptool.ajaxPost("api/Message/GetReadMessage", {UserId: customerId,ID:id},function(res){
          if(res.suc){
            let data=res.data;
            message.Content=data.Content;
            message.CreateDate=data.CreateDate;
            // let arr1=message.CreateDate.split('T');
            // let arr2=arr1.split(":");
            //  console.log(arr1);
            // message.CreateDate=arr1[0]+'  '+arr2[0]+':'+ arr2[1];
            that.setData({message:message});
          }else{
               app.showNotify(that, res.msg);
          }
     });
  },
  onReady:function(){
    // 页面渲染完成
  },
})